<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateOutstoragesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('outstorages', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('orderType')->nullable();
			$table->string('orderNo')->nullable();
			$table->string('orderFn')->nullable();
			$table->string('orderId')->nullable();
			$table->string('goodsName')->nullable();
			$table->string('goodsCode')->nullable();
			$table->string('goodsType')->nullable();
			$table->float('count', 10, 0)->nullable();
			$table->string('unit')->nullable();
			$table->string('code')->nullable();
			$table->string('info')->nullable();
			$table->string('storage')->nullable();
			$table->string('notes')->nullable();
			$table->float('rate', 10, 0)->nullable();
			$table->string('log')->nullable();
			$table->dateTime('date')->nullable();
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('outstorages');
	}

}
